package com.credithc.signature.job.handler;

import com.credithc.signature.job.ro.HandleRequest;
import org.springframework.stereotype.Component;

/**
 * @desc: <br/>
 * @author: Jingbo Hu<br/>
 * @time：2021年06⽉25⽇<br/>
 * @version：v1.0.0<br>
 */
public class AbstractExecuteHandler {

    /**
     * 执行数据实体
     */
    private HandleRequest handleRequest;

    /**
     * 执行节点的名称
     */
    protected String handlerName;

    /**
     * 下一个节点
     */
    protected AbstractExecuteHandler nextHandler;


    public void setNextHandler(AbstractExecuteHandler nextHandler) {
        this.nextHandler = nextHandler;
    }

    /**
     * 让子类实现
     * @param handleRequest
     */
    public void handleRequest(HandleRequest handleRequest)throws Exception {

    }

}
